<!DOCTYPE html>
<html>
<#include "../../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="所有钱贝勒">
                        <#include "../banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                				<div class="toolbor-module export">
										&nbsp;&nbsp;&nbsp;转入总额：${sInTotal?c}<br/>
										&nbsp;&nbsp;&nbsp;转出总额：${sOutTotal?c}
                                </div>
                                
                                <div class="toolbor-module search">
                    				<input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                				</div>
                                
                                 <div class="toolbor-module search">
                                    <div class="formTit">时间：</div>
                                    <input class="_search-value" name="startDate" id="startDate" value="" onclick="change_picktime()"/>
                                    <div class="formTit"> 到 </div>
                                    <input class="_search-value" name="endDate" id="endDate" value=""  onclick="change_picktime()"/>
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>项目名称</td>
                                            <td>年化收益</td>
                                            <td>借款期限</td>
                                            <td>项目总额度</td>
                                            <td>已持有额度</td>
                                            <td>剩余额度</td>
                                            <td>已持有用户数</td>
                                            <td>累计转入金额</td>
                                            <td>累计转出金额</td>
                                            <td>添加时间</td>
                                            <td>发布时间</td>
                                            <td>结束时间</td>
                                            <td>操作</td>
                                        </tr>
                                        <#if bm??>
                                            <tr class="s">
	                                            <td>${bm.b.id?c}</td>
	                                            <td>${bm.b.name!''}</td>
	                                            <td>${bm.b.apr!0}%</td>
	                                            <td>${bm.b.timeLimitDay!0}天</td>
	                                            <td>${bm.b.account!0}</td>
	                                            <td>${bm.b.accountYes!0}</td>
	                                            <td>${bm.b.account-bm.b.accountYes}</td>
	                                            <td>${bm.hasInNum!0}</td>
	                                            <td>${bm.inTotal!0}</td>
	                                            <td>${bm.outTotal!0}</td>
	                                            <td>${bm.b.addtime!''}</td>
	                                            <td><#if bm.b.secVerifyTime??>${bm.b.secVerifyTime}<#else>待发布</#if></td>
	                                            <td>${endDate!''}</td>
	                                            <td>
	                                            	<#if bm.b.status==10>
	                                            	<dd><a class="un" href="/admin/bm/accountAdd.html?bmId=${bm.b.id?c}">追加额度</a></dd>
	                                            	<dd><a class="un" href="/admin/bm/publishBabyMoney.html?bmId=${bm.b.id?c}">发布</a></dd>
	                                            	<#elseif bm.b.status==1>
	                                            	<dd><a class="un" href="/admin/bm/accountAdd.html?bmId=${bm.b.id?c}">追加额度</a></dd>
	                                            	<dd><a class="un" onClick="javascript:if(confirm('钱贝勒确定还款吗？')) location.href='/admin/bm/bmRepay.html?bmId=${bm.b.id?c}'">还款</a></dd>
	                                            	<#elseif bm.b.status==8>
	                                            	<dd style="color: green;">到期已还款</dd>
	                                            	</#if>
	                                            	<dd><a class="un" href="/admin/bm/showAccountAddRecord.html?bmId=${bm.b.id?c}">查看追加记录</a></dd>
	                                            </td>
                                            </tr>
                                         </#if>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                  
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->
                         
                            </div>

            </div>
        </div>
        <div>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
            <!--尾部--}-->
        </div>
    </div>
								<script>
                                    var url = '?search=true';
                                    function sousuo(){
                                        var sou = "";
                                        var startDate = $("#startDate").val();
                                        var endDate = $("#endDate").val();
                                        if (startDate!=null){
                                            sou += "&startDate="+startDate;
                                        }
                                        if (endDate!=null){
                                            sou += "&endDate="+endDate;
                                        }
                                       
                                        if (sou!=""){
                                            location.href=url+sou;
                                        }
                                    }
                                 
                                </script>
    </body>
</html>
<#include "../../jsPage.html">
